<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<script type="text/javascript" src="../lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="../lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
<script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>上传图片</title>
</head>
<body>
    <div class="pt-5  pl-20 pr-20 pb-20">
        <form id="itemEdit" name="itemEdit" method="post" action="../ashx/spui.ashx" class="form form-horizontal">
            <input type="hidden" class="actionValue" id="editAction" name="action" value="add" />
            <input type="hidden" id="id" name="id" />
            <input type="hidden" id="tablename" name="tablename" value="" />
            <input type="hidden" id="tablemidname" name="tablemidname" value="" />
            <input type="hidden" id="ftype" name="ftype" value="20151020" />
            <div id="tab-category" class="HuiTab">
                <div class="tabBar cl" id="tab-categorybar"><span>基本设置</span></div>

                <div class="tabCon" id="divtab3">
                    <div id="divshow3">
                        1先上传图片（选择文件---开始上传）上传完成后->2选择图片类型，点击提交。<br/>
                        <input type="hidden" id="ffv10" name="ffv10" value="" />
                        <div class="row cl">
                            <!--  <div class="col-2">相片<img id="imgExist" src="" width="110px" height="150px"></div>-->
                            <div class="col-10">
                                <div id="uploadfileQueue" style="padding: 3px;"></div>
                                <div id="file_upload"></div>
                                <br />
                                <img alt="" src="../uploadifyjs/images/BeginUpload.gif" width="77" height="23" onclick="doUplaod()" />
                                <img alt="" src="../uploadifyjs/images/CancelUpload.gif" width="77" height="23" onclick="closeLoad()" />
                            </div>

                        </div>
                        <div class="row cl">
                            <label class="form-label col-1"><span class="c-red">*</span>主类别：</label>
                            <div class="formControls col-2">
                                <span class="select-box">
                                    <select class="select" size="1" name="flb1" id="flb1"></select>
                                </span>
                            </div>
                            <div class="col-2"></div>
                            <label class="form-label col-1">子类别：</label>
                            <div class="formControls col-2">
                                <span class="select-box">
                                    <select class="select" size="1" name="flb2" id="flb2"></select>
                                </span>
                            </div>
                            <div class="col-2"></div>
                        </div>

                    </div>
                </div>
            </div>

            <div class="row cl">
                <div class="col-6 col-offset-4">
                    <button class="btn btn-primary radius" type="button" id="btsub1" onclick="img_postsetinfo();">提交</button>&nbsp;&nbsp;
				<button class="btn btn-secondary radius" type="button" id="btn_reset">重置</button>&nbsp;&nbsp;
				<button onclick="layer_close();" class="btn btn-default radius" type="button">返回</button>
                </div>
            </div>
            <div class="row cl">
                <div class="col-10" id="divforhcrfbutton">
                </div>
            </div>
        </form>
    </div>
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
    <script type="text/javascript" src="../lib/Validform/5.3.2/Validform.js"></script>
    <script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
    <script type="text/javascript" src="../js/hcui_au.js"></script>
    <script type="text/javascript" src="../js/hcrainwf.js"></script>
    <script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>



    <script type="text/javascript">
        var divshowtype = 1;
        var Mhcimgid = "#ffv10";
        var imgpostid = "";
        //加载处理
        function loadin() {
            imgpostid = NewGuid();
            ////本页面 
            //spsetBase("Table_SP", "id", "Table_SP as T", "*", "#tablelist", "newnruser", "用户管理", "newnruser");
            ////$("#imgExist").attr("src", "../ashx/GetPhotoHandler.ashx?mid=" + PhotoId);
            ////数据加载
            hcdosel("fv2 as id,fv2 as name", "table_sp", "type in('2015111301') and fv1='主类别'", "", "", "id", function (data) { SetSelectWithObjIdName("#flb1", data); });
            hcdosel("fv2 as id,fv2 as name", "table_sp", "type in('2015111301') and fv1='子类别'", "", "", "id", function (data) { SetSelectWithObjIdName("#flb2", data); });
            $.Huitab("#tab-category .tabBar span", "#tab-category .tabCon", "current", "click", "0");
            //$.Huifold("#Huifold2 .item h4", "#Huifold2 .item .info", "", 3, "click"); /*5个参数顺序不可打乱，分别是：相应区,隐藏显示的内容,速度,类型,事件 mouseover click */
            ////三种类型：分别对应的参数：
            ////1	只打开一个，可以全部关闭
            ////2	必须有一个打开
            ////3	可打开多个
            //Mhcloadback[0] = "fv10";
        }
        function loadback(data) {
            // loadDepInfo(data["fv9"], data["fv10"]);
            //loadUserInfo(data["fv10"], data["nv2"]);
            // $("#imgExist").attr("src", "../ashx/GetPhotoHandler.ashx?mid=" + data["fv10"]);
        }
        function img_postsetinfo() {

            if ($("#flb1").val() == "" || $("#flb2").val() == "") {
                layer.alert('类别不能为空', {
                    skin: 'layui-layer-molv' //样式类名
    , closeBtn: 1
                });
            }
            else {
                var dfdfd = "flb1%" + $("#flb1").val() + "$flb2%" + $("#flb2").val();
                hcdoedit("sysfileinfo", "fpostid", imgpostid, dfdfd, function (data) {
                    imgpostid = NewGuid();
                    layer.alert(data, {
                        skin: 'layui-layer-molv' //样式类名
   , closeBtn: 1
                    });
                });

            }
        }

    </script>


    <!-- 文件上传方法SSSSSSSSSSSSSSS-->
    <link href="../uploadifyjs/uploadify.css" rel="stylesheet" type="text/css" />
    <script src="../uploadifyjs/swfobject.js" type="text/javascript"></script>
    <script src="../uploadifyjs/jquery.uploadify.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../newbasejs/uploadifyui_more.js"></script>
    <!-- 文件上传方法EEEEEEEEEEEEEEE-->
</body>
</html>
